const { Schema, model, models } = require("mongoose");
const HotSearchSchema = new Schema(
    {
        keyword: { type: String },
        time: { type: Number },
    },
    {
        timestamps: {
            createdAt: "createTime",
            updatedAt: "updateTime",
        },
    }
);
let hotSearchModel = models["HotSearch"] || model("HotSearch", HotSearchSchema);
module.exports = hotSearchModel;